//
//  LTMessageApplyBody.h
//  LTIM
//
//  Created by 俊松何 on 2017/4/16.
//  Copyright © 2017年 俊松何. All rights reserved.
//

#import "LTMessageBody.h"
#import "LTUser.h"

typedef enum{
    LTApplyStateing     = 0,   //申请方消息已经发送
    LTApplyStateSuccess = 1,   //同意加好友申请
    
    LTApplyStateRefuse  = 2,   //暂时没用
    
    LTApplyAcceptStateing     = 3,  //接收到好友的加好友申请消息  
    LTApplyAcceptStateSuccess = 4,  //接收到对放同意好友申请的消息（状态针对接受消息方）
    
    LTApplyAcceptStateRefuse  = 5, //暂时没用
    
}LTApplyState;

typedef enum{
    LTApplyTypePrivate     = 0,
    LTApplyTypeGroup       = 1,

    
}LTApplyType;

@interface LTMessageApplyBody : LTMessageBody


@property(nonatomic,copy) NSString *applyMessageId;

@property(nonatomic,strong) LTUser *since;

@property(nonatomic,strong) LTUser *target;

@property(nonatomic,copy) NSString *sinceUserId;

@property(nonatomic,copy) NSString *targetUserId;


@property(nonatomic,copy)   NSString *reason;

@property(nonatomic,assign) LTApplyState status;


@property(nonatomic,assign) NSInteger isRead;

@property(nonatomic,assign) LTApplyType type;

@property(nonatomic,assign) long createTime;


-(instancetype)initWithsinceUser:(LTUser *)sinceUser
                      targetUser:(LTUser *)targetUser
                          reason:(NSString *)reason
                          status:(LTApplyState)status
                            type:(LTApplyType)type;

@end
